<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
    py:extends="'master.kid'">
<head>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
    <title>My Blog</title>
</head>
<body>
    <div id="posts">
        <div py:for="post in posts" id="post_${post.id}">
            <h2><a href="/post?id=${post.id}" py:content="post.title">Post title here</a></h2>
            <div class="postmeta">
                Posted on <span class="postdate" py:content="post.post_date">01/01/01</span>.<br/>
                <span py:if="post.comment_count > 0" py:strip=''>${post.comment_count}
                    <span py:if="post.comment_count == 1">comment.</span>
                    <span py:if="post.comment_count > 1">comments.</span>
                </span>
                <span py:if="post.comment_count == 0" py:strip=''>No comments</span>
            </div>
            <div class="content" py:content="XML(post.html_content)">
                This is where your post's content is displayed.
            </div>
        </div>
    </div>
</body>
</html>